{% extends '后台/layout.html' %}


{% load static %}

{% block title %}
乐天用户管理
{% endblock %}

{% block css %}

{% endblock %}

{% block content %}
<div class="card">
    <!-- <a href="/user/add/" style="float:right;" class="btn btn-primary btn-sm">新增用户</a> -->
    <a href="/user/add/" class="btn btn-outline-primary btn-sm" style="width: 100px; margin:10px 20px;">新增用户</a>

    <div class="card-body">
        <h5 class="card-title" style="border-bottom: 1px solid rgba(0,0,0,.3);padding-bottom:10px;font-size:18px;
        display: flex;justify-content: space-between;
        ">
            <span>用户管理</span>
            <a href="/my/index/" style="" class="btn btn-primary btn-sm">前往我的页面</a>
        </h5>
        <div class="bd-example">
            
                
            <table class="table table-bordered">
                <thead>
                    <tr>
                        <th scope="col">ID</th>
                        <th scope="col">用户名</th>
                        <th scope="col">用户账号</th>
                        <th scope="col">用户密码</th>
                        <th scope="col">用户手机号</th>
                        <th scope="col">用户余额</th>
                        <th scope="col">操作</th>
                    </tr>
                </thead>
                <tbody>
                    {% for obj in user_info_all %}
                    <tr>
                        <th scope="row">{{obj.id}}</th>
                        <td>{{obj.name}}</td>
                        <td>{{obj.account}}</td>
                        <td>{{obj.password}}</td>
                        <td>{{obj.mobile}}</td>
                        <td>{{obj.money}}元</td>
                        <td>
                            <a href="/user/{{obj.id}}/edit/" class="btn btn-primary btn-sm">编辑</a>
                            <a href="/user/{{obj.id}}/delete/" class="btn btn-danger btn-sm"><i class="bi bi-trash"></i> 删除</a>
                        </td>
                    </tr>
                    {% endfor %}
                </tbody>

            </table>
        </div>

    </div>
</div>


{% endblock %}

{% block js %}

{% endblock %}